﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LunarSF.SHomeWorkshop.LunarMarkdownEditor
{
    public enum ColumnDefinition
    {
        LEFT, RIGHT, CENTER
    }

    public class TableLinesInfo
    {
        public TableLinesInfo()
        {
        }

        private bool used = false;

        private String tableHtmlText = "";

        private List<String> table = new List<String>();

        private int startLineIndex;

        private int endLineIndex;

        private List<ColumnDefinition> columnDefinitions = new List<ColumnDefinition>();

        public List<ColumnDefinition> getColumnDefinitions()
        {
            return columnDefinitions;
        }

        public int getStartLineIndex()
        {
            return startLineIndex;
        }

        public void setStartLineIndex(int startLineIndex)
        {
            this.startLineIndex = startLineIndex;
        }

        public int getEndLineIndex()
        {
            return endLineIndex;
        }

        public void setEndLineIndex(int endLineIndex)
        {
            this.endLineIndex = endLineIndex;
        }

        public List<String> Table
        {
            get
            {
                return table;
            }
        }

        public void setTable(List<String> table)
        {
            this.table = table;
        }

        public String getTableHtmlText()
        {
            return tableHtmlText;
        }

        public void setTableHtmlText(String tableHtmlText)
        {
            this.tableHtmlText = tableHtmlText;
        }

        public bool isUsed()
        {
            return used;
        }

        public void setUsed(bool used)
        {
            this.used = used;
        }
    }
}
